Skip to content

docs: document per_iteration tradeoffs and commit ABC experiment records - #63

Merged
FonaTech merged 1 commit into
mainfrom
docs-0.3.4-per-iteration
Nov 18, 2026
Merged

FonaTech merged 1 commit into
mainfrom
docs-0.3.4-per-iteration

Conversation

@FonaTech

Copy link
Copy Markdown
Owner

Three doc-only changes layered on top of 0.3.4 (db62a31). Version stays 0.3.4; no code or packaging changes.

Summary

  • experiments/loop_depth_15m/results_abc/ — commit the five ABC arm records (base, A_dtcap, B_plain, C_periter, obj_lm) that back 0.3.4's decoding findings. Each arm's training JSON, stdout log, and greedy probe JSON are included; the arm .pth files and run_<name>/ training-output directories are not. probes/ ships the greedy-probe script (probe_arm.py) and the twelve EN/ZH prompt file used to average unique_ratio / max_run / max_4gram. The README explains:

    • the per-group dt column (sum over groups per iteration, not cumulative over iterations);
    • KV accounting under recurrent_attention_mode=per_iteration (P+RG+C = 18 slots vs shared_first's 6 on the 1/4/1 × R=4 skeleton — 4× on the recurrent layers only, 3× across the whole six-block model);
    • the two inference-side costs: max_inference_depth is pinned to the trained depth, and recurrent-depth self-speculative decoding falls back to plain.
  • docs/LOOP_DEPTH.md — add §4.3 Attention-mode comparison at matched recipe using base vs C_periter. Both arms differ only in recurrent_attention_mode. Reports:

    • Table L5 (final CE 4.735 vs 4.727, steps 1,290 vs 1,235, peak 7.43 vs 7.54 GB);
    • step-matched CE at step 1,000 (4.920 vs 4.867, gap −0.053);
    • per-corpus gap (C_periter − base: +0.021 cosmo, −0.038 edu_zh, +0.019 fw_edu, +0.032 wiki_en, −0.078 wiki_zh);
    • Table L6 greedy-probe averages (max_run 13.08 → 3.58; max_4gram 18.58 → 10.67);
    • exact cache-slot counts under both modes with the two inference-side consequences.
  • chronos/webui/i18n/{en,zh-Hans,zh-Hant,ja}.json — extend field.recurrent_attention_mode.help so the WebUI lists the three inference costs of per_iteration alongside its CE/cleanness gains, in all four UI languages, with the same numbers.

What this is not

  • No code change, no CHANGELOG bump, no new release.
  • No default change: shared_first remains the default.
  • .pth weights and run_<name>/ training outputs are not committed; arm_<name>.json's checkpoint field points to the relative on-disk path for local re-runs.

Verification

  • All four i18n JSONs parse clean (python -m json.tool).
  • experiments/loop_depth_15m/results_abc/ has 504K, no .pth/.pkl/.ctsr, no run_* subdirectory.
  • Numbers in LOOP_DEPTH.md §4.3 and the README table match the committed arm JSONs and probe JSONs.

🤖 Generated with Claude Code

Three doc-only changes that follow 0.3.4; version stays 0.3.4.

- experiments/loop_depth_15m/results_abc/: commit the five ABC arm
  records (base, A_dtcap, B_plain, C_periter, obj_lm) that back the
  decoding findings in 0.3.4's CHANGELOG. Each arm's training JSON,
  stdout log, and greedy probe JSON are included; the arm .pth files
  and run_<name>/ training-output directories are not. probes/ ships
  the greedy-probe script and the twelve EN/ZH prompt file used to
  average unique_ratio / max_run / max_4gram. README explains the
  per-group dt column, the KV accounting (18 vs 6 slots on a 1/4/1
  skeleton), and the two inference-side costs of per_iteration.

- docs/LOOP_DEPTH.md: add section 4.3 comparing shared_first and
  per_iteration at matched recipe using the ABC base vs C_periter
  arms, with final CE, step-matched CE at step 1000, per-corpus gap,
  greedy-probe averages, and the exact cache-slot counts.

- chronos/webui/i18n/{en,zh-Hans,zh-Hant,ja}.json: extend
  field.recurrent_attention_mode.help to list the three inference
  costs of per_iteration (KV grows by depth on recurrent layers,
  max_inference_depth is pinned to the trained depth, speculative
  decoding falls back to plain) alongside its CE and greedy-cleanness
  gains, so the WebUI gives the same information in all four UI
  languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@FonaTech
FonaTech merged commit d5c5f6b into main Nov 18, 2026
3 checks passed
@FonaTech
FonaTech deleted the docs-0.3.4-per-iteration branch November 18, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant